package com.lenovo.newsapp.util;

public class Const {

	public static final String WX_APP_ID = "wx31a824f78958f860";

	public static final int INIT_FLAG = 1; // 执行初始化操作
	public static final int REFRESH_FLAG = 2; // 执行刷新操作
	public static final int LOAD_MORE_FLAG = 3; // 执行加载更多操作
	public static final String DEBUG = "com.lenovo.newsapp";
	public static final String STATUS = "status_code";
	public static final String RESULT = "result";
	public static final String USERINFO = "userinfo";
	public static boolean isChangeLanguage = false;
	public static final String SAVENEWS = "savenews";
	public static final String SAVE_NEWS_DETAIL = "savenewsdetail";
	public static final String OFFLINE = "offline";
	
	public static boolean isSuccessWLInit = false;//worklight初始化是否成功
	
	public static boolean manuallyRefresh = false;//是否是手动刷新
	
	public static boolean isFrefresh = false; //是否刷新新闻列表

	public static final String LIKE = "2";
	public static final String READ = "1";
	// PageSize
	public static final int PAGE_SIZE = 10;

	public static int currentSection = 0;
	public static int HOME = 0;
	public static int BANNER = 1;
	public static int RECENT = 2;
	public static int GALLERIES = 3;
	public static int VIDEO = 4;
	public static int MAIL = 5;
	public static int STOCK = 6;
	public static int FAVORITE = 7;
	
	//判断页面数据是否已经加载过，0：第一次进入，未加载过数据；1：已经加载过数据
	public static int HOME_LIST = 0;
	public static int GALLERIES_LIST = 0;
	public static int MAIL_LIST = 0;
	

	public static int ONE_DAY_MS = 86400000;//24小时


	public static final String DOMAIN = "http://10.100.83.220:9000";
//	public static final String DOMAIN = "http://192.168.191.1:9000";
//	public static final String DOMAIN = "http://192.168.1.114:9000";

	//tinyurl地址
	public static final String TINY_URL = "http://tinyurl.com/api-create.php?url=";

	//分享地址
	public static final String SHARE_URL = "http://news.unifiedcloud.lenovo.com/LenovoHtmlGen/WebService?action=getNewsDetail&id=";

	public static final String FLASH_DOWNLOAD_URL = DOMAIN+"/application";  //插件下载地址


	public static int getCurrentSection() {
		return currentSection;
	}

	public static void setCurrentSection(int currentSection) {
		Const.currentSection = currentSection;
	}

}
